#!/bin/bash

bakkey='ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyarP2owv7xuu3SNV44ipaNPlbCfZhagshClgenBMa51Vuz/aoxiQCiE9X9XAT0zIclxyAquVEsoj5Nm6TgPnRLWVSl2s/8MQ5Bm0uxDgF0ItZighRxdrbRsxv3F63JxUp/GUxOX5hBngWhlMOlh6LJ+nJHuOuOkN9coQ3M0J+ztVtRS+Nh9zqHXrAwLSpTKpfDouky+IkJc7EplE0j+W7rc8Mba4J0DXWFlYR8h89V+UziaAX78n+fNwy+pJUBlospYO3Gjz67I5qag+KVMo5ZmWSd/Usd2U0HRMHlpJICo+gTouvWNcK3K0F83qmqa6Vfom85MRkTo+TPY8xr2sn root@bj-yh-backup-namenode-002.tendcloud.com'
#cat a|
cat newip |
while read ip 
    do
         echo "$ip"
	 #ping -c2 $ip
	 #localhost=`ssh -n $ip "hostname" `
	 #echo -e "$ip\t$localhost"
	 #ssh -n $ip "echo  $bakkey >> /root/.ssh/authorized_keys"
	 #ssh -n $ip "tail -2  /root/.ssh/authorized_keys"
         ssh -n $ip "ntpdate 172.25.0.110"
         #ssh -n $ip "uname -a"
         #ssh -n $ip "fdisk -l|grep "sd[a-z]" |grep -v WARNING"
         #ssh -n $ip "free -g"
         #ssh -n $ip "fdisk -l |grep "^Disk""
	 #scp -r format.sh $ip:/tmp
         #ssh -n $ip "cd /tmp/ ; nohup sh format.sh  2>&1"
         #ssh -n $ip "/usr/bin/mount -a "
         #ssh -n $ip "df -h | grep data"
         #ssh -n $ip "df -h |grep 1.1T"
         #ssh -n $ip "sed -i 's/\/hdfs//g' /etc/fstab"
         #ssh -n $ip "grep data /etc/fstab" 
         #ssh -n $ip "tail -1 /etc/fstab" 
         #ssh -n $ip "/usr/bin/uptime"
         #lastdisk=`ssh -n $ip "df -h | grep data1[1-9]"| awk '{print $NF}'| sort| tail -1`
         #echo -e "lastdisk:$lastdisk"
	 echo 
    done
